{% extends 'base.html' %}
{% block content %}
<div class="container mt-4">
    <h2>传感器数据导入/导出</h2>
    <div class="card">
        <div class="card-body">
            <form method="post" enctype="multipart/form-data">
                {% csrf_token %}
                <div class="mb-3">
                    <label for="import" class="form-label">导入Excel文件</label>
                    <input type="file" class="form-control" id="import" name="import" accept=".xlsx,.xls">
                </div>
                <button type="submit" class="btn btn-primary">导入</button>
                <a href="?export=1" class="btn btn-success ms-2">导出</a>
            </form>
        </div>
    </div>
</div>
{% endblock %}